package com.hotel.sampleTool;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.hotel.BL.TaxLogic;
import com.hotel.sampleTool.RequestSampleData;

import data.Tax;

public class TaxSample extends RequestSampleData {
	public TaxSample(HttpServletRequest req,HttpServletResponse resp){
		this.req = req;
		this.resp = resp;
	}
	@Override
	public void CreateSample() {
		CreateSample(1);
	}

	@Override
	public void CreateSample(int iteration) {
		List<Tax> tax = new TaxLogic(req,resp).GenerateTax(1);
		for(Tax a : tax)
			datastore.put(a.getEntity());
	}


}
